import request from '@/utils/request'

// 查询救济金申领列表
export function listApplicationBenefitAnagement(query) {
  return request({
    url: '/rural/applicationBenefitAnagement/list',
    method: 'get',
    params: query
  })
}

// 查询救济金申领详细
export function getApplicationBenefitAnagement(id) {
  return request({
    url: '/rural/applicationBenefitAnagement/' + id,
    method: 'get'
  })
}

// 新增救济金申领
export function addApplicationBenefitAnagement(data) {
  return request({
    url: '/rural/applicationBenefitAnagement',
    method: 'post',
    data: data
  })
}

// 修改救济金申领
export function updateApplicationBenefitAnagement(data) {
  return request({
    url: '/rural/applicationBenefitAnagement',
    method: 'put',
    data: data
  })
}

// 删除救济金申领
export function delApplicationBenefitAnagement(id) {
  return request({
    url: '/rural/applicationBenefitAnagement/' + id,
    method: 'delete'
  })
}


// 确认救济金已发放
export function confirmApplicationBenefitAnagement(data) {
  return request({
    url: '/rural/applicationBenefitAnagement/confirm',
    method: 'put',
    data: data
  })
}